//
//  PIAudioPlay.h
//  playin
//
//  Created by lijunge on 2019/9/6.
//  Copyright © 2019 lijunge. All rights reserved.
//

#import <Foundation/Foundation.h>

NS_ASSUME_NONNULL_BEGIN

@interface PIAudioPlay : NSObject

@property (nonatomic, assign) BOOL volumeOff;

- (void)configAudioDescriptionWithSampleRate:(int)sampleRate
                              bitsPerChannel:(int)bitChannel
                                channelFrame:(int)channelFrame;

- (void)playWith:(NSData *)audioData;

- (void)stopAudioPlay;

- (void)turnOffAudioPlay:(BOOL)off;

@end

NS_ASSUME_NONNULL_END
